package com.springcloud.demo;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @ClassName UserImportSelector
 * @Description
 * @Author 戴书博
 * @Date 2020/5/24 8:46
 * @Version 1.0
 **/
public class UserImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{UserConfiguration.class.getName()};
    }
}
